#ifndef __BSP_USART_H__
#define __BSP_USART_H__

#include "stm32f10x.h"
#include "user.h"

#define Data_len_5                  4           //串口5数据长度
#define Data_len_1                  5           //串口1数据长度

#define USART5_PACKAGE_HEAD         0x53        //串口5数据包头
#define USART5_PACKAGE_END          0x71        //串口5数据包尾
#define USART5_PACKAGE_ERRO         0x22        //串口5数据包错误

void USART_1_Init(u32 bound);
void UART5_Init(u32 baud);
void USART_2_Init(u32 bound);
void USART_3_Init(u32 bound);
void UART4_Init(u32 baud);
void USART1_PrintDatas(u8*data,u8 size);
void USART5_PrintDatas(u8*data);
void USART_Printnum(USART_TypeDef*USART,u8 num);
void USART5_VOFA_Send(u8*data,u8 size);
unsigned char USART1_ReadData(void);
unsigned char USART5_ReadData(void);
unsigned char*USART5_ReadPackage(void);
unsigned char*USART1_ReadPackage(void);
#endif

